package com.ruiysoft.controller.mdse.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import java.util.Objects;

/**
 * SpuListVo
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2018-10-27T01:43:53.483+08:00")

public class SpuListVo   {
  @JsonProperty("spuId")
  private Long spuId = null;

  @JsonProperty("category")
  private String category = null;

  @JsonProperty("categoryId")
  private String categoryId = null;

  @JsonProperty("costPrice")
  private String costPrice = null;

  @JsonProperty("unitPrice")
  private String unitPrice = null;

  @JsonProperty("listPrice")
  private String listPrice = null;

  @JsonProperty("quantity")
  private String quantity = null;

  @JsonProperty("photo")
  private String photo = null;

  @JsonProperty("status")
  private Integer status = null;

  @JsonProperty("spuName")
  private String spuName = null;

  Integer sequence = null;

  String supplierName = null;

  String freightName = null;

  public SpuListVo spuId(Long spuId) {
    this.spuId = spuId;
    return this;
  }

  /**
   * Get spuId
   * @return spuId
  **/
  @ApiModelProperty(example = "1", value = "")


  public Long getSpuId() {
    return spuId;
  }

  public void setSpuId(Long spuId) {
    this.spuId = spuId;
  }

  public SpuListVo category(String category) {
    this.category = category;
    return this;
  }

  /**
   * 分类名
   * @return category
  **/
  @ApiModelProperty(example = "衣服", value = "分类名")


  public String getCategory() {
    return category;
  }

  public void setCategory(String category) {
    this.category = category;
  }

  public SpuListVo costPrice(String costPrice) {
    this.costPrice = costPrice;
    return this;
  }

  /**
   * 成本价范围(可能不需要)
   * @return costPrice
  **/
  @ApiModelProperty(example = "1~2", value = "成本价范围(可能不需要)")


  public String getCostPrice() {
    return costPrice;
  }

  public void setCostPrice(String costPrice) {
    this.costPrice = costPrice;
  }

  public SpuListVo unitPrice(String unitPrice) {
    this.unitPrice = unitPrice;
    return this;
  }

  /**
   * 销售价范围
   * @return unitPrice
  **/
  @ApiModelProperty(example = "1~2", value = "销售价范围")


  public String getUnitPrice() {
    return unitPrice;
  }

  public void setUnitPrice(String unitPrice) {
    this.unitPrice = unitPrice;
  }

  public SpuListVo listPrice(String listPrice) {
    this.listPrice = listPrice;
    return this;
  }

  /**
   * 市场价范围(可能不需要)
   * @return listPrice
  **/
  @ApiModelProperty(example = "1~2", value = "市场价范围(可能不需要)")


  public String getListPrice() {
    return listPrice;
  }

  public void setListPrice(String listPrice) {
    this.listPrice = listPrice;
  }

  public SpuListVo quantity(String quantity) {
    this.quantity = quantity;
    return this;
  }

  /**
   * 库存范围
   * @return quantity
  **/
  @ApiModelProperty(example = "1~2", value = "库存范围")


  public String getQuantity() {
    return quantity;
  }

  public void setQuantity(String quantity) {
    this.quantity = quantity;
  }

  public SpuListVo photo(String photo) {
    this.photo = photo;
    return this;
  }

  /**
   * 封面图
   * @return photo
  **/
  @ApiModelProperty(example = "http://c.hiphotos.baidu.com/image/pic/item/b2de9c82d158ccbffea08a4c14d8bc3eb13541a3.jpg", value = "封面图")


  public String getPhoto() {
    return photo;
  }

  public void setPhoto(String photo) {
    this.photo = photo;
  }

  public SpuListVo status(Integer status) {
    this.status = status;
    return this;
  }

  /**
   * 上下架状态（0，上架，1，下架）
   * @return status
  **/
  @ApiModelProperty(value = "上下架状态（0，上架，1，下架）")


  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public SpuListVo spuName(String spuName) {
    this.spuName = spuName;
    return this;
  }

  /**
   * Get spuName
   * @return spuName
  **/
  @ApiModelProperty(value = "")


  public String getSpuName() {
    return spuName;
  }

  public void setSpuName(String spuName) {
    this.spuName = spuName;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SpuListVo spuListVo = (SpuListVo) o;
    return Objects.equals(this.spuId, spuListVo.spuId) &&
        Objects.equals(this.category, spuListVo.category) &&
        Objects.equals(this.costPrice, spuListVo.costPrice) &&
        Objects.equals(this.unitPrice, spuListVo.unitPrice) &&
        Objects.equals(this.listPrice, spuListVo.listPrice) &&
        Objects.equals(this.quantity, spuListVo.quantity) &&
        Objects.equals(this.photo, spuListVo.photo) &&
        Objects.equals(this.status, spuListVo.status) &&
        Objects.equals(this.spuName, spuListVo.spuName);
  }

  @Override
  public int hashCode() {
    return Objects.hash(spuId, category, costPrice, unitPrice, listPrice, quantity, photo, status, spuName);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SpuListVo {\n");

    sb.append("    spuId: ").append(toIndentedString(spuId)).append("\n");
    sb.append("    category: ").append(toIndentedString(category)).append("\n");
    sb.append("    costPrice: ").append(toIndentedString(costPrice)).append("\n");
    sb.append("    unitPrice: ").append(toIndentedString(unitPrice)).append("\n");
    sb.append("    listPrice: ").append(toIndentedString(listPrice)).append("\n");
    sb.append("    quantity: ").append(toIndentedString(quantity)).append("\n");
    sb.append("    photo: ").append(toIndentedString(photo)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    spuName: ").append(toIndentedString(spuName)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

  public String getCategoryId() {
    return categoryId;
  }

  public SpuListVo setCategoryId(String categoryId) {
    this.categoryId = categoryId;
    return this;
  }

  public Integer getSequence() {
    return sequence;
  }

  public void setSequence(Integer sequence) {
    this.sequence = sequence;
  }

  public String getSupplierName() {
    return supplierName;
  }

  public void setSupplierName(String supplierName) {
    this.supplierName = supplierName;
  }

  public String getFreightName() {
    return freightName;
  }

  public void setFreightName(String freightName) {
    this.freightName = freightName;
  }
}

